import usePatchOptions from './hooks/usePatchOptions';
import useRoutes from './hooks/useRoutes';

async function createRoutes() {
  const routes = useRoutes();
  await usePatchOptions(routes);

  return routes;
}

const routes = await createRoutes();

export default routes;
